package com.itehiam.test;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.tanhua.model.domain.UserInfo;
import com.tanhua.server.AppServerApplication;
import org.apache.dubbo.config.annotation.DubboReference;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = AppServerApplication.class)
public class BlackListApi {
    @DubboReference
    private com.tanhua.dubbo.api.BlackListApi blackListApi;

    @Test
    public void testFindByMolie(){
        IPage<UserInfo> page = blackListApi.findByUserId(2,2,106l);
        for (UserInfo record : page.getRecords()) {
            System.out.println(record);
        }
    }
    @Test
    public void test2(){
        blackListApi.delete(106l,2l);

    }

}
